package com.youkeda.dewu.dao;

import com.youkeda.dewu.dataobject.OrderDO;
import com.youkeda.dewu.param.QueryOrderParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderDAO {
    int deleteByPrimaryKey(String id);

    int insert(OrderDO record);

    int insertSelective(OrderDO record);

    OrderDO selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(OrderDO record);

    int updateByPrimaryKey(OrderDO record);

    int selectCounts(@Param("param") QueryOrderParam param);

    List<OrderDO> pageQuery(@Param("param") QueryOrderParam param);

    OrderDO selectByOrderNumber(String orderNumber);

}